package com.cll.prototype.captcha;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 描述信息:
 * 注解@EnableDiscoveryClient：开启服务注册
 * 注解@EnableCircuitBreaker：开启熔断
 * 注解@EnableFeignClients：开启远程调用rest接口
 * @author CLL
 * @version 1.0
 * @date 2020/10/28 20:52
 */
@SpringBootApplication(scanBasePackages = {"com.cll.prototype.captcha", "com.cll.prototype.common.config"})
@MapperScan(basePackages = "com.cll.prototype.common.captcha.mapper")
@EnableDiscoveryClient
@EnableFeignClients
public class CaptchaApplication8070 {

    private static final Logger logger = LoggerFactory.getLogger(CaptchaApplication8070.class);

    public static void main(String[] args) {
        logger.info("===>>> 验证码微服务开始启动");
        SpringApplication.run(CaptchaApplication8070.class, args);
        logger.info("===>>> 验证码微服务启动成功");
    }

}
